#ifndef LOGINDIALOG_H
#define LOGINDIALOG_H
#include <QDialog>
#include <QDesktopWidget>
#include "Settings.h"


namespace Ui {
    class LoginDialog;
}

class LoginDialog : public QDialog
{
    Q_OBJECT

public:
    explicit LoginDialog(QWidget *parent = 0);
    ~LoginDialog();

signals:
    void CreateDatabase(QString account);

private slots:
    void on_Create_clicked();

    void on_login_textChanged(const QString &arg1);

    void on_pass_textChanged(const QString &arg1);

private:
    Ui::LoginDialog *ui;
    Settings set;
    bool CheckEmail(QString email);

};

#endif // LOGINDIALOG_H
